import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_learn_vi/src/bean/bean_penting.dart';

/// 创建人： Created by zhaolong
/// 创建时间：Created by  on 2020/12/25.
///
/// 可关注公众号：我的大前端生涯   获取最新技术分享
/// 可关注网易云课堂：https://study.163.com/instructor/1021406098.htm
/// 可关注博客：https://blog.csdn.net/zl18603543572
///
/// 代码清单
///代码清单
class PendingHeaderWidget extends StatelessWidget {
  final String userName;
  final PentingBean pentingBean;

  PendingHeaderWidget({@required this.userName, this.pentingBean});

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Text(
          "$userName",
          style: TextStyle(fontSize: 12, color: Colors.blueGrey),
        ),
        Container(
          width: 13,
          alignment: Alignment.center,
          margin: EdgeInsets.only(left: 8, right: 20),
          decoration: BoxDecoration(
              borderRadius: BorderRadius.all(Radius.circular(2)),
              border: Border.all(color: Colors.blueGrey)),
          child: Text(
            "ID",
            style: TextStyle(fontSize: 8, color: Colors.blueGrey),
          ),
        ),
        Row(
          mainAxisAlignment: MainAxisAlignment.center,
          mainAxisSize: MainAxisSize.min,
          children: [
            GestureDetector(
              onTap: () {},
              child: Row(
                children: [
                  Image.asset(
                    "assets/images/2.0x/reviewCount.png",
                    width: 18,
                    height: 18,
                    fit: BoxFit.fill,
                  ),
                  SizedBox(
                    width: 4,
                  ),
                  Text(
                    "${pentingBean.reviewCount}",
                    style: TextStyle(fontSize: 12, color: Colors.blueGrey),
                  ),
                ],
                mainAxisSize: MainAxisSize.min,
              ),
            )
          ],
        )
      ],
    );
  }
}
